<!DOCTYPE html>
<html id="replace-style" lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<link rel="icon" type="image/x-icon" href="/favicon.ico" th:href="@{/favicon.ico}" >
	<title>备件信息管理</title>
		
</head>
<body>
<!--头部-->
<header th:replace="common/head" >
</header> 
<!-- 页面指向 -->
<div class="page-point bg-white">
	<ul>
	
		<li>备件管理</li>
		<li>备件信息管理</li>
	</ul>
</div>
<!-- 菜单树 -->
<div th:replace="common/left" > 
</div>




<!--主体内容-->
<div class="page-container">

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12">
			<h2 class="page-section-title">查询条件</h2>
		</div>
	</div>

	<div class="container-fluid query-frame-wrap mb-10 clearfix">
        <div class="col-lg-9 col-lg-item-6">
            <div class="row">
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>备件编码</label>
                        <input autocomplete="new-password" class="form-control queryPart" id="partCode" type="text" />
                        </select>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>备件名称</label>
                        <input autocomplete="new-password" class="form-control queryPart" id="partName" type="text" />
                    </div>
                </div>
				<div class="col-lg-4">
					<div class="query-frame">
						<label>设备型号</label>
						<select id="modelCode" class="form-control queryPart queryEuqipModel">
							<!-- <option th:value="${modelCode}" th:text="${modelCode}"></option> -->
		                    	<option value="">请选择</option>
							<option>
						</select>
					</div>
				</div>
            </div>
            <div class="row">
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>备件类型</label>
             			<select id="partType" class="form-control queryPart">
							<option id="" selected="selected" value="">不限</option>
							<option value="0">专用件</option>
							<option value="1">通用件</option>
						</select>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>易损件</label>
             			<select id="quickWearFlag" class="form-control queryPart">
							<option value="">不限</option>
							<option value="0">是</option>
							<option value="1">否</option>
						</select>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="query-frame">
                        <label>关键备件</label>
             			<select id="keyPartFlag" class="form-control queryPart">
							<option value="">不限</option>
							<option value="0">是</option>
							<option value="1">否</option>
						</select>
                    </div>
                </div>
            </div>
        </div>

        <div class="col-lg-3">
            <div class="query-frame query-button">
                <img id="queryPart" src="/linkdcs/image/search.png" />
                <img class="queryPartReset" src="/linkdcs/image/rest.png" />
            </div>
        </div>
	</div>

	<div class="container-fluid mb-20 clearfix">
		<div class="col-md-12 rlt">
			<h2 class="page-section-title">备件列表</h2>
			<ul class="table-tool">
			    <li data-toggle="modal"  class="addPart" id="addPart" shiro:hasPermission="app.part.info.savePart.save.mvc">
			        <span class="icon-list_add" aria-hidden="true"></span>
			        <label>新增</label>
			    </li>
			    <li  class="updatePart" id="updatePart" shiro:hasPermission="app.part.info.savePart.save.mvc">
			        <span class="icon-list_xiugai" aria-hidden="true"></span>
			        <label>修改</label>
			    </li>
			    <li id="delPart" class="delPart" shiro:hasPermission="app.part.info.delPartById.del.mvc">
			        <span class="icon-list_shanchu" aria-hidden="true"></span>
			        <label >删除</label>
			    </li>
			    <li id="refreshpart" class="refresh">
			        <span class="icon-list_shuaxin" aria-hidden="true"></span>
			        <label>刷新</label>
			    </li>
			</ul>
		</div>
	</div>

	<div class="container-fluid table-container">
		<table id="partTable"  cellspacing="" cellpadding="">
						
		</table>
	</div>
</div>

<div class="modal fade modelForm" id="myModal" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title title">新增</h4>
      </div>
      <div class="modal-body">
		    <div class="row">
		        <div class="col-lg-12">
		            <form id="defaultForm" method="post" class="form-horizontal PartForm" action="">
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">备件编码</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="partCode" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">备件名称</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="partName" value="" />
		                    </div>
		                </div>
          		        <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-2">规格</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="partSpecification" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-2">单位</label>
		                    <div class="col-lg-7">
           						<select class="form-control partUnit" name=partUnit>
									<option selected="selected" value="套">套</option>
									<option value="个">个</option>
									<option value="条">条</option>
									<option value="件">件</option>
									<option value="对">对</option>
									<option value="吨/T">吨/T</option>
									<option value="升/L">升/L</option>
									<option value="克/g">克/g</option>
									<option value="毫升/ml">毫升/ml</option>
									<option value="米/m">米/m</option>
									<option value="千克/kg">千克/kg</option>
									<option value="片">片</option>
									<option value="台">台</option>
								</select>
		                    </div>
		                </div>
   		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">备件类型</label>
		                    <div class="col-lg-7">
           						<select class="form-control partType" name="partType">
           							<option selected="selected" value="">请选择</option>
									<option value="0">专用件</option>
									<option value="1">通用件</option>
								</select>
		                    </div>
		                </div>
		                <div class="form-group" id="modelCodeDiv">
		                    <label class="col-lg-3 control-label form-required form-required-4">设备型号</label>
		                    <div class="col-lg-7">
		                    	<select name="modelCode" class="form-control emModelName">
		                    		<option value="">请选择</option>
		                    	</select>
		                    </div>
		                </div>
<!--       		            <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-3">易损件</label>
		                    <div class="col-lg-7 quickWearFlag">
		                    	<input type="radio" value="0" name="quickWearFlag" id="quickWearFlagYes">是
		                    	<input type="radio" value="1" name="quickWearFlag" id="quickWearFlagNo">否
		                    </div>
		                </div> -->
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">易损件</label>
		                    <div class="col-lg-7">
           						<select class="form-control quickWearFlag" name="quickWearFlag">
           							<option selected="selected" value="">请选择</option>
									<option value="0">是</option>
									<option value="1">否</option>
								</select>
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">关键备件</label>
		                    <div class="col-lg-7">
           						<select class="form-control keyPartFlag" name="keyPartFlag">
           							<option selected="selected" value="">请选择</option>
									<option value="0">是</option>
									<option value="1">否</option>
								</select>
		                    </div>
		                </div>
<!-- 		                <div class="form-group">
		                    <label class="col-lg-3 control-label form-required form-required-4">关键备件</label>
		                    <div class="col-lg-7 keyPartFlag">
		                    	<input autocomplete="new-password" type="radio" value="0" name="keyPartFlag" id="keyPartFlagYes">是
		                    	<input autocomplete="new-password" type="radio" value="1" name="keyPartFlag" id="keyPartFlagNo">否
		                    </div>
		                </div> -->
<!--    		                <div class="form-group">
		                    <label class="col-lg-3 control-label">保质期（月）</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="shelfLife" value="" />
		                    </div>
		                </div>	 -->
   		                <div class="form-group">
		                    <label class="col-lg-3 control-label">标准寿命</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="stdAge" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label">寿命单位</label>
		                    <div class="col-lg-7">
           						<select class="form-control lifeUnit" name="lifeUnit">
									<option value="次">次</option>
									<option value="小时">小时</option>
								</select>
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label">现有库存</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="nowStock" value="" />
		                    </div>
		                </div>	
		                <div class="form-group">
		                    <label class="col-lg-3 control-label">最低库存</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="minStock" value="" />
		                    </div>
		                </div>
		                <div class="form-group">
		                    <label class="col-lg-3 control-label">安全库存</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="safeStock" value="" />
		                    </div>
		                </div>	
		                <div class="form-group">
		                    <label class="col-lg-3 control-label">最高库存</label>
		                    <div class="col-lg-7">
		                    	<input autocomplete="new-password" type="text" class="form-control" name="maxStock" value="" />
		                    </div>
		                </div>			            	                
             			<!-- 隐藏唯一id -->
						<input autocomplete="new-password" type="hidden" name="pkId" id="pkId" value="" />
		            </form>
		        </div>
		    </div>
      </div>
      <div class="modal-footer  ">
        <button type="button" class="btn btn-primary yes buttonHtml">保存</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>




<div th:replace="common/foot" > 
</div>

<script th:src="@{/js/lifeCycle/partLifeCycle/partInfo.js}"type="text/javascript"></script>



</body>
</html>